﻿using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
using DiagramDesigner.Common.Controls;
using DiagramDesigner.Common.Helpers;
using DiagramDesigner.Common.Interfaces;
using System.Windows.Interactivity;

namespace Behavior.Link
{
    [Export(typeof(IBehaviorPlugin))]
    public class LinkBehaviorPlugin : IBehaviorPlugin
    {
        public string PluginName { get { return "Link Behavior Plugin"; } }
        public string ToolboxTitle { get { return "Link"; } }
        public Behavior<DesignerItem> GetBehaviour()
        {
            return new LinkBehavior();
        }

        public bool AutoAttachOnDrop { get { return false; } }
        public bool ShowInToobox { get { return true; } }
        public Image Icon { get { return ImageHelper.ImageFromBitmap(Settings.icon); } }
        public Type BehaviorType { get { return typeof(LinkBehavior); } }
    }
}
